Restrict

annotation class Restrict(val min: Float = -Float.MAX_VALUE, val max: Float = Float.MAX_VALUE)

Annotation-driven validation for Floats

Author

fzzyhmstrs

Since

0.2.0

Parameters

min

: Float - minimum allowable value, default to Float.MIN_VALUE

max

: Float - maximum allowable value, default to Float.MAX_VALUE

Properties

Link copied to clipboard
val max: Float
Link copied to clipboard
val min: Float